package com.eastrobot.report.model;

import java.io.Serializable;

import com.alibaba.fastjson.annotation.JSONField;

/**
 * 封装表字段相关信息
 * 
 * @author baoy
 * 
 */
public class Field implements Serializable {

	private static final long serialVersionUID = -553868536357762569L;
	// 字段名称
	@JSONField(name="text")
	private String name;
	// 字段类型
	private String fieldType;
	// 字段注释
	private String fieldRemark;
	// 字段长度
	private Integer fieldLength;
	// 叶子节点
	private boolean leaf = true;

	public Field(String name, String fieldType, String fieldRemark, Integer fieldLength) {
		super();	
		this.name = name;
		this.fieldType = fieldType;
		this.fieldRemark = fieldRemark;
		this.fieldLength = fieldLength;
	}

	public Field() {
		super();
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getFieldType() {
		return fieldType;
	}

	public void setFieldType(String fieldType) {
		this.fieldType = fieldType;
	}

	public String getFieldRemark() {
		return fieldRemark;
	}

	public void setFieldRemark(String fieldRemark) {
		this.fieldRemark = fieldRemark;
	}

	public Integer getFieldLength() {
		return fieldLength;
	}

	public void setFieldLength(Integer fieldLength) {
		this.fieldLength = fieldLength;
	}

	public boolean isLeaf() {
		return leaf;
	}

	public void setLeaf(boolean leaf) {
		this.leaf = leaf;
	}
	
	

}
